{template header}
<style type="text/css">
.boldTitle{float:left; font-size:14px; font-weight:bold; padding:5px;}
.inputbg{width:240px;}
</style>
<div class="maininfo">
	<div class="lattice x1" style="padding-left: 0;">
		{template userlogin}
	</div>

	<div class=x4>
		<form id=theform name=theform action="cart-consignee.htm" method=post>
			<div class=flowbox>
				<h6><span style="font-size:14px; font-weight:bold; padding-left:5px;">收货人信息</span></h6>
				<table cellspacing=1 cellpadding=5 width="99%" align=center bgcolor=#dddddd border=0>
					<tbody>
						<tr>
						  <td align="right" bgcolor=#ffffff>地区：</td>
						  <td colspan="3" bgcolor=#ffffff>
							<select name="info[province]" id="province" style="width: 150px;" onchange="ajaxget('site-ajaxCity-'+this.value+'.htm', 'showCity', 'showCity', null, null)">
								<option value="">请选择区域</option>
								<!--{loop $areaList $v}-->
								<option value="{$v[id]}" {if $area[fId]==$v[id]}selected="selected"{/if}>{$v[name]}</option>
								<!--{/loop}-->
							</select>
							<span id="showCity">
							<select name="user[areaId]" id="city" style="width: 150px;">
								<option value="">请选择区域</option>
							</select>
							</span>
							<span style="color:red" id="err_city"></span>
						</td>
					  </tr>
						<tr>
							<td align="right" bgcolor=#ffffff>收货人姓名：</td>
							<td bgcolor=#ffffff><input class=inputbg id="realName" name=info[realName] value="{$info[realName]}"> 
							(<font color="#FF0000">必填</font>) </td>
							<td align="right" bgcolor=#ffffff>电子邮件地址：</td>
							<td bgcolor=#ffffff><input class=inputbg id="email" value="{$info[email]}" name=info[email]> (<font color="#FF0000">必填</font>)</td></tr>
						<tr>
							<td align="right" bgcolor=#ffffff>详细地址：</td>
							<td bgcolor=#ffffff><input class=inputbg id="address" name=info[address] value="{$info[address]}"> (<font color="#FF0000">必填</font>)</td>
							<td align="right" bgcolor=#ffffff>邮政编码：</td>
							<td bgcolor=#ffffff><input class=inputbg id="zipcode" name=info[zipcode] value="{$info[zipcode]}"></td></tr>
						<tr>
							<td align="right" bgcolor=#ffffff>电话：</td>
							<td bgcolor=#ffffff><input class=inputbg id="phone" name=info[phone] value="{$info[phone]}"> (<font color="#FF0000">必填</font>)</td>
							<td align="right" bgcolor=#ffffff>手机：</td>
							<td bgcolor=#ffffff><input class=inputbg name=info[mobile] value="{$info[mobile]}"></td></tr>
						<tr>
							<td align="right" bgcolor=#ffffff>标志建筑：</td>
							<td bgcolor=#ffffff><input class=inputbg name=info[signBuilding] value="{$info[signBuilding]}"></td>
							<td align="right" bgcolor=#ffffff>最佳送货时间：</td>
							<td bgcolor=#ffffff><input class=inputbg name=info[bestTime] value="{$info[bestTime]}"></td>
						</tr>
						<tr>
							<td align=middle bgcolor=#ffffff colspan=4><input type=submit value=配送至这个地址 name=submit></td>
						</tr>
					</tbody>
			  </table>
			</div>
		</form>
	</div>
	<script language="javascript" type="text/javascript">
		J('#theform').submit(function(){
			if(J.trim(J('#realName').val())==''){
				alert('请填写收货人姓名');
				J('#realName').focus();
				return false;
			}
			if(J.trim(J('#email').val())==''){
				alert('请填写电子邮件地址');
				J('#email').focus();
				return false;
			}
			if(J.trim(J('#address').val())==''){
				alert('请填写详细地址');
				J('#address').focus();
				return false;
			}
			if(J.trim(J('#phone').val())==''){
				alert('请填写电话');
				J('#phone').focus();
				return false;
			}
		});							
	</script>
</div>
{template footer}